﻿<Window x:Class="MySqlQueryToolkit.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition />
        </Grid.RowDefinitions>

        <TextBox Name="QueryInput" Grid.Column="1" Margin="0" AcceptsReturn="True" VerticalScrollBarVisibility="Auto" TextWrapping="Wrap" FontFamily="Consolas"></TextBox>

        <GridSplitter ResizeDirection="Rows" Grid.ColumnSpan="2" Height="5" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>

        <DockPanel LastChildFill="True" Grid.Row="2" Background="LightGray">
            <WrapPanel DockPanel.Dock="Top" Margin="5">
                <Button Name="RunButton" Click="RunQueryAnalysis"></Button>
            </WrapPanel>
            <TabControl DockPanel.Dock="Bottom">
                <TabItem Name="OptionsTab">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                        </Grid.RowDefinitions>
                        <Label Name="OptionsExplainLabel" Grid.Column="0" Grid.Row="0"></Label>
                        <Label Name="OptionsProfileLabel" Grid.Column="0" Grid.Row="1"></Label>
                        <Label Name="OptionsTimeLabel" Grid.Column="0" Grid.Row="2"></Label>
                        <CheckBox Name="OptionsExplainInput" Grid.Column="1" Grid.Row="0" IsChecked="True"></CheckBox>
                        <CheckBox Name="OptionsProfileInput" Grid.Column="1" Grid.Row="1"></CheckBox>
                        <CheckBox Name="OptionsTimeInput" Grid.Column="1" Grid.Row="2"></CheckBox>
                    </Grid>
                </TabItem>
                <TabItem Name="ExplainTab">

                </TabItem>
                <TabItem Name="ProfileTab">

                </TabItem>
                <TabItem Name="SettingsTab">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition />
                            <ColumnDefinition />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                            <RowDefinition Height="25" />
                        </Grid.RowDefinitions>
                        <Label Name="DatabaseServerLabel" Grid.Column="0" Grid.Row="0"></Label>
                        <Label Name="DatabaseUserLabel" Grid.Column="0" Grid.Row="1"></Label>
                        <Label Name="DatabasePasswordLabel" Grid.Column="0" Grid.Row="2"></Label>
                        <TextBox Name="DatabaseServerInput" Grid.Column="1" Grid.Row="0">localhost</TextBox>
                        <TextBox Name="DatabaseUserInput" Grid.Column="1" Grid.Row="1">root</TextBox>
                        <TextBox Name="DatabasePasswordInput" Grid.Column="1" Grid.Row="2">root</TextBox>
                        <Button Name="DatabaseTestConnectionButton" Click="CheckDatabaseConnection" Grid.Column="1" Grid.Row="3"></Button>
                    </Grid>
                </TabItem>
            </TabControl>
        </DockPanel>
    </Grid>
</Window>
